import lazyLoadView from '@/router/lazy-load';
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const ReemploymentManagement: AppRouteRecordRaw = {
  path: '/reemployment',
  name: 'Reemployment',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.reemployment',
    requiresAuth: false,
    icon: 'icon-storage',
    order: 107,
    // roleCode: 'GROUP_ELDER_ADMIN',
  },
  children: [
    {
      path: 'trainee',
      name: 'ReemploymentTrainee',
      component: lazyLoadView(
        () =>
          import('@/views/lhj-v1/reemployment-management/m-trainee/index.vue')
      ),
      meta: {
        locale: 'menu.reemployment.trainee',
        requiresAuth: false,
        // roleCode: 'GROUP_ELDERLY',
        pageName: '学员列表',
      },
    },
    {
      path: 'document',
      name: 'ReemploymentDocument',
      component: lazyLoadView(
        () =>
          import('@/views/lhj-v1/reemployment-management/m-document/index.vue')
      ),
      meta: {
        locale: 'menu.reemployment.document',
        requiresAuth: false,
        // roleCode: 'GROUP_ELDERLY',
        pageName: '档案列表',
      },
    },
    {
      path: 'project',
      name: 'ReemploymentProject',
      component: lazyLoadView(
        () =>
          import('@/views/lhj-v1/reemployment-management/m-project/index.vue')
      ),
      meta: {
        locale: 'menu.reemployment.project',
        requiresAuth: false,
        // roleCode: 'GROUP_ELDERLY',
        pageName: '项目列表',
      },
    },
    {
      path: 'record',
      name: 'ReemploymentRecord',
      component: lazyLoadView(
        () =>
          import('@/views/lhj-v1/reemployment-management/m-record/index.vue')
      ),
      meta: {
        locale: 'menu.reemployment.record',
        requiresAuth: false,
        // roleCode: 'GROUP_ELDERLY',
        pageName: '记录列表',
      },
    },
  ],
};

export default ReemploymentManagement;
